export const tableConfig = {
  totalCol: 16,
  title: "",
  config: [
    {
      id: "row_1",
      cells: [
        {
          id: "cell_1_1",
          content: "$.objectFieldMap.date.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_1_2",
          content: "${objData.date}",
          controllerType: "$.objectFieldMap.date.controllerType",
          colspan: 4,
          rowspan: 1,
        },
        {
          id: "cell_1_3",
          content: "$.objectFieldMap.class.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_1_4",
          content: "${objData.class}",
          controllerType: "$.objectFieldMap.class.controllerType",
          colspan: 4,
          rowspan: 1,
          defaultValue: "正常"
        },
      ],
    },
    {
      id: "row_2",
      cells: [
        {
          id: "cell_2_1",
          content: "$.objectFieldMap.line.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_2_2",
          content: "${objData.line}",
          controllerType: "INPUT",
          colspan: 4,
          rowspan: 1,
        },
        {
          id: "cell_2_3",
          content: "$.objectFieldMap.productModel.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_2_4",
          content: "${objData.productModel}",
          controllerType: "INPUT",
          colspan: 4,
          rowspan: 1,
        },
      ],
    },
    {
      id: "row_3",
      cells: [
        {
          id: "cell_3_1",
          content: "交接班点检",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 2,
        },
        {
          id: "cell_3_2",
          content: "$.objectFieldMap.post5s.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_3_3",
          content: "$.objectFieldMap.airPressure.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_3_4",
          content: "$.objectFieldMap.lubricateOilStaus.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_3_5",
          content: "$.objectFieldMap.cleanWaterStatus.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_3_6",
          content: "$.objectFieldMap.successionYield.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_3_7",
          content: "$.objectFieldMap.handoverYield.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_3_8",
          content: "$.objectFieldMap.powerOnTime.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_3_9",
          content: "$.objectFieldMap.powerOffTime.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
      ],
    },
    {
      id: "row_4",
      cells: [
        {
          id: "cell_4_1",
          content: "交接班点检",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 0,
        },
        {
          id: "cell_4_2",
          content: "${objData.post5s}",
          controllerType: "$.objectFieldMap.post5s.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_4_3",
          content: "${objData.airPressure}",
          controllerType: "$.objectFieldMap.airPressure.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_4_4",
          content: "${objData.lubricateOilStaus}",
          controllerType: "$.objectFieldMap.lubricateOilStaus.controllerType",
          options: "$.objectFieldMap.lubricateOilStaus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_4_5",
          content: "${objData.cleanWaterStatus}",
          controllerType: "$.objectFieldMap.cleanWaterStatus.controllerType",
          options: "$.objectFieldMap.cleanWaterStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_4_6",
          content: "${objData.successionYield}",
          controllerType: "$.objectFieldMap.successionYield.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_4_7",
          content: "${objData.handoverYield}",
          controllerType: "$.objectFieldMap.handoverYield.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_4_8",
          content: "${objData.powerOnTime}",
          controllerType: "$.objectFieldMap.powerOnTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_4_9",
          content: "${objData.powerOffTime}",
          controllerType: "$.objectFieldMap.powerOffTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
      ],
    },
    {
      id: "row_5",
      cells: [
        {
          id: "cell_5_1",
          content: "项目",
          controllerType: "LABEL",
          colspan: 2,
          rowspan: 2,
        },
        {
          id: "cell_5_2",
          content: "标准",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 2,
        },
        {
          id: "cell_5_3",
          content: "检测频率",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 2,
        },
        {
          id: "cell_5_4",
          content: "$.listFieldMap.detectionTime.fieldName",
          controllerType: "LABEL",
          colspan: 12,
          rowspan: 1,
        },
      ],
    },
    {
      id: "row_6",
      cells: [
        {
          id: "cell_6_1",
          content: "项目",
          controllerType: "LABEL",
          colspan: 2,
          rowspan: 0,
        },
        {
          id: "cell_6_2",
          content: "标准",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 0,
        },
        {
          id: "cell_6_3",
          content: "检测频率",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 0,
        },
        {
          id: "cell_6_4",
          content: "${listData[0].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_5",
          content: "${listData[1].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_6",
          content: "${listData[2].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_7",
          content: "${listData[3].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_8",
          content: "${listData[4].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_9",
          content: "${listData[5].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_10",
          content: "${listData[6].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_11",
          content: "${listData[7].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_12",
          content: "${listData[8].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_13",
          content: "${listData[9].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_14",
          content: "${listData[10].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_6_15",
          content: "${listData[11].detectionTime}",
          controllerType: "$.listFieldMap.detectionTime.controllerType",
          colspan: 1,
          rowspan: 1,
        },
      ],
    },
    {
      id: "row_7",
      cells: [
        {
          id: "cell_7_1",
          content: "项目1",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 2,
        },
        {
          id: "cell_7_2",
          content: "$.listFieldMap.inletProductStatus.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_3",
          content: "$.listFieldMap.inletProductStatus.standardDesc",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_4",
          content: "$.listFieldMap.inletProductStatus.opFrequency",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_16",
          content: "${listData[0].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_5",
          content: "${listData[1].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_6",
          content: "${listData[2].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
          // change: (value, formData) => {
          //   if (value === "无") {
          //     formData['${listData[0].outletFanStatus}${listData[1].outletFanStatus}${listData[2].outletFanStatus}'] = "正常"
          //   }
          // },
        },
        {
          id: "cell_7_7",
          content: "${listData[3].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_8",
          content: "${listData[4].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_9",
          content: "${listData[5].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_10",
          content: "${listData[6].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_11",
          content: "${listData[7].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_12",
          content: "${listData[8].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_13",
          content: "${listData[9].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_14",
          content: "${listData[10].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_7_15",
          content: "${listData[11].inletProductStatus}",
          controllerType: "$.listFieldMap.inletProductStatus.controllerType",
          options: "$.listFieldMap.inletProductStatus.controllerContentValue",
          colspan: 1,
          rowspan: 1,
        },
      ],
    },
    {
      id: "row_8",
      cells: [
        {
          id: "cell_8_1",
          content: "项目1",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 0,
        },
        {
          id: "cell_8_2",
          content: "$.listFieldMap.outletFanStatus.fieldName",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_8_3",
          content: "$.listFieldMap.outletFanStatus.standardDesc",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_8_4",
          content: "$.listFieldMap.outletFanStatus.opFrequency",
          controllerType: "LABEL",
          colspan: 1,
          rowspan: 1,
        },
        {
          id: "cell_8_5",
          content:
            "${listData[0].outletFanStatus}${listData[1].outletFanStatus}${listData[2].outletFanStatus}",
          controllerType: "$.listFieldMap.outletFanStatus.controllerType",
          options: "$.listFieldMap.outletFanStatus.controllerContentValue",
          colspan: 3,
          rowspan: 1,
          // disabled: true
        },
        {
          id: "cell_8_6",
          content:
            "${listData[3].outletFanStatus}${listData[4].outletFanStatus}${listData[5].outletFanStatus}",
          controllerType: "$.listFieldMap.outletFanStatus.controllerType",
          options: "$.listFieldMap.outletFanStatus.controllerContentValue",
          colspan: 3,
          rowspan: 1,
        },
        {
          id: "cell_8_7",
          content:
            "${listData[6].outletFanStatus}${listData[7].outletFanStatus}${listData[8].outletFanStatus}",
          controllerType: "$.listFieldMap.outletFanStatus.controllerType",
          options: "$.listFieldMap.outletFanStatus.controllerContentValue",
          colspan: 3,
          rowspan: 1,
        },
        {
          id: "cell_8_8",
          content:
            "${listData[9].outletFanStatus}${listData[10].outletFanStatus}${listData[11].outletFanStatus}",
          controllerType: "$.listFieldMap.outletFanStatus.controllerType",
          options: "$.listFieldMap.outletFanStatus.controllerContentValue",
          colspan: 3,
          rowspan: 1,
        },
      ],
    },
  ],
};
/**
 * 模板字段
 * {
 *  id: "row_8", //行id
 *  copyValuesRows: 10, // 重复的内容行,适用与列表,空白填些区
 *  showDelBtn: true, // 鼠标移动到该行，末尾出现删除按钮，可以是boolean类型或function类型，function返回boolean，默认是false
 *  showAddBtn: true, // 鼠标移动到该行，末尾出现增加一行按钮（向下增加），可以是boolean类型或function类型，function返回boolean，默认是false
 *  cells: [ // 行内单元格
 *    {
 *      id:"cell_8_1", // 单元格id,
 *      attrData: {}, // 单元格的属性（用于自由绑定属性数据）
 *      content: "项目1", // 单元格的内容,如果是表头类的,则直接显示的表头内容,如果是输入的表单,则为绑定的表单数据的字段,格式:${listData[0].outletFanStatus}(多个则直接拼接)
 *      controllerType: "LABEL", // 单元格内容的类型,LABEL/INPUT/NUMBER/RADIO/SELECT/MULTIPLESELECT/DATE/DATETIME/CHECKBOX/UPLOAD,
 *      options: [{value: 1, label: '有'}], //类型为RADIO/SELECT等选择框时,options为选择项,可以是以上对象数组类型,或是字符串数据["有","无"],若为字符串,则会编译转化为数组对象
 *      colspan: 1, // 跨列
 *      rowspan: 1, // 跨行
 *      disabled: false, // 是否可编辑
 *      defaultValue: "", // 默认值 多选的默认值是数组，日期/时间的默认值是currentDateTime(当前时间)或时间字符串
 *      width: "50px", //单元格宽度，一般会是最低宽度
 *      required: true, //是否必填
 *      warningVerification: { rule: (cell, formData) => {}, trigger: 'change' }, //告警校验规则，rule返回false则校验不通过，返回true则校验通过，目前trigger只支持change，告警字体会变红色，还有下标弹窗提示数据异常
 *      accept: "jpg/png/gif/pdf/doc/docx/xls/xlsx/ppt/pptx/jpeg/zip", //附件时控制上传格式
 *      change: (value, formData) => {}, // 内容变化时回调，参数：value-变更后的内容，formData-表单数据（若需要序列化后存储在后端，则change无法存储，需要些在代码中，单元格内容变化会传播时间$emit）
 *    }
 *  ]
 * }
 *
 * 模板插值
 * ${listData[6].outletFanStatus} 为表单插值,用于转换表单数据
 * $.listFieldMap.outletFanStatus.opFrequency 为模板转换值,会在模板渲染之前,把需要转换的内容按照给予的配置数据进行一次内容转换
 */

